package com.lq.file.filemanager.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @program: file-manager
 * @description:
 * @author: LQ
 * @create: 2021-08-07 13:00
 */
@Data
@Component
public class FileServer {
    /**
     * 服务器类型
     */
    @Value("${file.server.type}")
    private String fileServerType;

    @Value("${file.server.host}")
    private String fileServerHost;
    @Value("${file.server.port}")
    private Integer fileServerPort;
    @Value("${file.server.filePath}")
    private String fileServerPath;

    /**
     * 连接超时时间
     */
    @Value("${file.server.connect.timeOut}")
    private Integer fileServerConnectTimeOut;

    /**
     * 字符集
     */
    @Value("${file.server.control.encoding}")
    private String fileServerControlEncoding;

}
